package com.cnfangmao.masterdata.dao;

import org.apache.ibatis.annotations.Param;

import com.cnfangmao.masterdata.model.AccountRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * <p>
 * 账号角色关联表 Mapper 接口
 * </p>
 *
 * @author chenxd
 * @since 2020-04-17
 */
public interface AccountRoleDao extends BaseMapper<AccountRole> {

	IPage<AccountRole> queryListAccountRole(IPage<AccountRole> page,@Param("userName")String userName,@Param("roleName")String roleName);
	
	int deleteAccountRoleByUserId(String userId);
	
	int deleteAccountRoleByRoleId(String roleId);
}
